package sis.summer;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-07-23 10:00
 * @notify
 * @version 1.0
 */

import sis.studentinfo.Course;
import sis.studentinfo.CourseSession;
import sis.studentinfo.Session;

import java.util.Date;

public class SummerCourseSession extends Session {
    //获取实例
    public static SummerCourseSession create(Course course, Date startDate) {
        return new SummerCourseSession(course, startDate);
}

    //创建实例,调用父类构造子
    public SummerCourseSession(Course course, Date startDate) {
        super(course, startDate);
    }

    //获取课程总共几周
    @Override
    protected int getSessionLength() {
        return 8;
    }
}
